import { defineConfig } from "vitepress";

export default defineConfig({
  title: "c1 开发套件",
  description: "c1 开发套件",
  lastUpdated: true,
  // markdown: {
  //     lineNumbers: true
  // },
  // base: '/',
  lang: "zh-CN",
  // repo: 'vuejs/vitepress',
  // head: [
  //     [
  //         'link',
  //         {
  //             rel: 'icon',
  //             href: '/img/linktolink.png',
  //         },
  //     ],
  // ],
  themeConfig: {
    outlineTitle: "目录",

    nav: [
      { text: "首页", link: "/" },
      { text: "工作日志", link: "/daily-record-of-work/", activeMatch: "/daily-record-of-work/" },
      {
        text: "网址收藏",
        items: [
          {
            text: "antd",
            link: "https://ant.design/components/overview-cn/",
          },
          {
            text: "ahooks",
            link: "https://ahooks.js.org/zh-CN/",
          },
        ],
      },
    ],

    sidebar: {
      "/daily-record-of-work/": [
        {
          text: "2022年",
          collapsible: true,
          collapsed: false,
          items: [
            { text: "工作日志", link: "/daily-record-of-work/2022/" },
            { text: "收获", link: "/daily-record-of-work/2022/harvest" },
            { text: "总结", link: "/daily-record-of-work/2022/summary" },
          ],
        },
        {
          text: "2021年",
          collapsible: true,
          collapsed: true,
          items: [
            { text: "工作日志", link: "/daily-record-of-work/2021/" },
            { text: "收获", link: "/daily-record-of-work/2021/harvest" },
            { text: "总结", link: "/daily-record-of-work/2021/summary" },
          ],
        },
        {
          text: "2020年",
          collapsible: true,
          collapsed: true,
          items: [
            { text: "工作日志", link: "/daily-record-of-work/2020/" },
            { text: "收获", link: "/daily-record-of-work/2020/harvest" },
            { text: "总结", link: "/daily-record-of-work/2020/summary" },
          ],
        },
      ],
    },
  },
});
